package org.jeecg.modules.flow.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.activiti.engine.delegate.DelegateTask;
import org.jeecg.modules.flow.dto.TaskPermissionConfigDto;
import org.jeecg.modules.flow.entity.FlowPermission;

/**
 * @Description: flow_permission
 * @Author: zzq
 * @Date: 2021-11-14
 * @Version: V1.0
 */

public interface IFlowPermissionService extends IService<FlowPermission> {

    /**
     * 获取任务权限配置信息
     *
     * @param procdefId 流程定义ID
     * @param taskDefId 环节定义ID
     * @param cusNo     客户号
     * @param orgId     机构ID
     * @return
     */
    TaskPermissionConfigDto getTaskPermissionConfig(String procdefId, String taskDefId, Integer cusNo, String orgId);

    /**
     * 设置任务权限
     *
     * @param delegateTask
     */
    void setUserTaskPermission(DelegateTask delegateTask);

}
